home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / avahi-daemon.preinst < prev    next >
Text File  |  2009-10-18  |  914b  |  31 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. case "$1" in
  6.   install|upgrade)
  7.     if dpkg --compare-versions "$2" le "0.6.20-1"; then
  8.       if [ -d "/etc/avahi/etc" ]; then
  9.         rm -f /etc/avahi/etc/localtime;
  10.         rmdir --ignore-fail-on-non-empty /etc/avahi/etc;
  11.       fi
  12.     fi
  13. esac
  14.  
  15. # Automatically added by dh_installinit
  16. if [ "$1" = install ] || [ "$1" = upgrade ]; then
  17.     if [ -e "/etc/init.d/avahi-daemon" ] && [ ! -L "/etc/init.d/avahi-daemon" ]; then
  18.         if [ "`md5sum \"/etc/init.d/avahi-daemon\" | sed -e \"s/ .*//\"`" != \
  19.              "`dpkg-query -W -f='${Conffiles}' avahi-daemon | sed -n -e \"\\\\' /etc/init.d/avahi-daemon '{s/ obsolete$//;s/.* //p}\"`" ]
  20.         then
  21.             echo "Obsolete conffile /etc/init.d/avahi-daemon has been modified by you, renaming to .dpkg-bak"
  22.             mv -f "/etc/init.d/avahi-daemon" "/etc/init.d/avahi-daemon.dpkg-bak"
  23.         else
  24.             rm -f "/etc/init.d/avahi-daemon"
  25.         fi
  26.     fi
  27. fi
  28. # End automatically added section
  29.  
  30.  
  31.